package com.lenovo.agent.model.gitlab;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Builder;
import lombok.Data;

@Data
@Builder
public class MergeRequestComment {
    private String body;

    @JsonProperty("line_code")
    private String lineCode;

    @JsonProperty("position")
    private Position position;

    @Data
    @Builder
    public static class Position {
        @JsonProperty("base_sha")
        private String baseSha;

        @JsonProperty("start_sha")
        private String startSha;

        @JsonProperty("head_sha")
        private String headSha;

        @JsonProperty("position_type")
        private String positionType;

        @JsonProperty("new_path")
        private String newPath;

        @JsonProperty("new_line")
        private Integer newLine;

        @JsonProperty("old_path")
        private String oldPath;

        @JsonProperty("old_line")
        private Integer oldLine;
    }
} 